import axios from '@/request/http';
import base from "../base";
// import QS from 'qs';

const messageType = {

    // 常用 CRUD
    // 获取所有数据
    getAll(){
        return axios.get(`${base.sq}/messageType`)
    },
    messageTypeAdd(messageType){
        return axios.post(`${base.sq}/messageType`,{
            ...messageType
        })
    },
    messageTypePatch(id , messageType){
        return axios.patch(`${base.sq}/messageType/${id}`,{
            ...messageType
        })
    },
    messageTypeDelete(id){
        return axios.delete(`${base.sq}/messageType/${id}`);
    },
}

export default messageType;
